<template>
  <a-config-provider :size="'small'" :locale="comLang || enUS">
    <RouterView />
  </a-config-provider>
</template>

<script setup lang="ts">
import enUS from "@arco-design/web-vue/es/locale/lang/en-us";
import th from "@arco-design/web-vue/es/locale/lang/th-th";
import zhCN from "@arco-design/web-vue/es/locale/lang/zh-cn";

const comLang = computed(() => {
  const locales: any = {
    zh: zhCN,
    en: enUS,
    lg_4: th
  };
  return locales[import.meta.env.VITE_LANG] || "en";
});
</script>
